package com.lei.zjs.service.ebo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lei.zjs.dao.WorkbillDao;
import com.lei.zjs.service.ebi.WorkbillService;
import com.lei.zjs.vo.PageBean;
import com.lei.zjs.vo.Workbill;

@Service
@Transactional
public class WorkbillServiceImpl implements WorkbillService{

	@Resource
	private WorkbillDao workbillDao;

	@Override
	public void pageQuery(PageBean pageBean) {
		workbillDao.pageQuery(pageBean);
	}

	@Override
	public void cancel(Workbill model) {
		Workbill workbill = workbillDao.findById(model.getId());
		workbill.setType("销单");
	}
}
